package itheima.d08;

import java.util.*;
import java.util.stream.Stream;

public class Test {
    public static void main(String[] args) {
        List<String> list =new ArrayList<>();
        Set<String> set = new HashSet<>();
        Map<String,Integer> map = new HashMap<>();
        int [] arr = {1,2,3,4,5,6,7,8,9};


        Stream<String> stream = list.stream();

        Stream<String> stream1 = set.stream();


        Set<String> keys = map.keySet();
        Set<Map.Entry<String, Integer>> entries = map.entrySet();
        Collection<Integer> values = map.values();
        keys.stream().forEach(System.out::println);
        values.stream().forEach(System.out::println);
        entries.stream()
                .filter(e -> e.getValue() > 5).forEach(System.out::println);









    }
}
